<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<!--Made By kailuosoft.com, TEL 171 9992 9517 -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>回收站</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="/Public/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/Public/css/animate.min.css" rel="stylesheet">
    <link href="/Public/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/Public/css/page.css" rel="stylesheet">
    <link href="/Public/css/new.css" rel="stylesheet">

    <script src="/Public/js/jquery.min63b9.js?v=2.1.4"></script>
    <script type="text/javascript" src="/Public/js/jquery.imgbox.pack.js"></script>
    <script src="/Public/js/plugins/layer/layer.min.js"></script>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <script type="text/javascript">
        function page(n, s) {
            var sku = $('#sku').val();
            var default_styles = $('#default_styles').val();
//			var independent_product=$('#independent_product').val();
            var price_type = $('#price_type').val();
            var brand = $('#brand').val();
            var logo = $('#logo').val();
            console.log(brand);
            var product_material = $('#product_material').val();
            var product_type = $('#product_type').val();
            var weight_before = $('#weight_before').val();
            var weight_after = $('#weight_after').val();
            var cost_price_before = $('#cost_price_before').val() === undefined ? '' : $('#cost_price_before').val();
            var cost_price_after = $('#cost_price_after').val() === undefined ? '' : $('#cost_price_after').val();
            ;
            var ali_lt_start = $('#ali_lt_start').val();
            var ali_lt_end = $('#ali_lt_end').val();
            var ali_gt_start = $('#ali_gt_start').val();
            var ali_gt_end = $('#ali_gt_end').val();
            var aliexpress_start = $('#aliexpress_start').val();
            var aliexpress_end = $('#aliexpress_end').val();
            var ioffer_start = $('#ioffer_start').val();
            var ioffer_end = $('#ioffer_end').val();
            var custom_one = $('#custom_one').val();
            var custom_two = $('#custom_two').val();
            var custom_three = $('#custom_three').val();
            var custom_four = $('#custom_four').val();
            var supplier = $('#supplier').val();
            var buyer = $('#buyer').val();
            var starttime = $('#starttime').val();
            ;
            var endtime = $('#endtime').val();
            var fictitious_product = $('#fictitious_product').val();
            var own_product = $('#own_product').val();
            location.href = 'recycle?pageNo=' + n + '&pageSize=' + s + '&sku=' + sku + '&default_styles=' + default_styles + '&price_type=' + price_type + '&brand=' + brand + '&logo=' + logo + '&product_material=' + product_material + '&product_type=' + product_type + '&weight_before=' + weight_before + '&weight_after=' + weight_after + '&cost_price_before=' + cost_price_before + '&cost_price_after=' + cost_price_after + '&ali_lt_start=' + ali_lt_start + '&ali_lt_end=' + ali_lt_end + '&ali_gt_start=' + ali_gt_start + '&ali_gt_end=' + ali_gt_end + '&aliexpress_start=' + aliexpress_start + '&aliexpress_end=' + aliexpress_end + '&custom_one=' + custom_one + '&custom_two=' + custom_two + '&custom_three=' + custom_three + '&custom_four=' + custom_four + '&supplier=' + supplier + '&buyer=' + buyer + '&starttime=' + starttime + '&endtime=' + endtime + '&fictitious_product=' + fictitious_product + '&own_product=' + own_product;				//location.href='recycle?pageNo='+n+'&pageSize='+s+'&outer_iid='+outer_iid+'&tid='+tid+'&receiver_name='+receiver_name+'&name='+name+'&asc='+asc+'&shoptitle='+shoptitle+'&starttime='+starttime+'&endtime='+endtime;
            return false;
        }

        function dele(id) {
            layer.confirm('确定要删除吗？',
                {btn: ['确定', '取消']},
                function () {
                    location.href = 'order_delete?id=' + id;
                }
            ),

                function () {
                    return false;
                }

        }

        function list_sort(name) {
            if ($('#asc').val() == 'asc') {
                var asc = 'desc';
            } else {
                var asc = 'asc';
            }
            var title = $('#title').val();
            var phone = $('#phone').val();
            var orderno = $('#orderno').val();
            //location.href='find?pageNo='+<?php echo ($count["pageNo"]); ?>+'&pageSize='+<?php echo ($count["pageSize"]); ?>+'&title='+title+'&phone='+phone+'&orderno='+orderno+'&name='+name+'&asc='+asc;
        }


    </script>


</head>

<body class="gray-bg" style="width:2600px; overflow:auto;position:absolute;">
<div style="position:relative;">
    <img src="/Public/images/<?php echo ($product_info["sku"]); ?>/<?php echo ($product_info["main_pic"]); ?>" id="main_pic_show"
         style="position:fixed;z-index:1;display:none;"/ >
    <img src="/Public/images/<?php echo ($product_info["sku"]); ?>/<?php echo ($product_info["size_pic"]); ?>" id="size_pic_show"
         style="position:fixed;z-index:1;display:none;"/ >
</div>
<div class="wrapper wrapper-content fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>产品回收站</h5>

                </div>

                <table class="table table-bordered table-striped table-hover">
                    <thead>
                    <tr>
                        <th width="1%"><input class="check-all" type="checkbox" value=""/></th>
                        <th width="3%">SKU</th>
                        <th width="3%">主图</th>
                        <th width="3%">尺寸图</th>
                        <th width="3%">进入图库</th>
                        <th width="4%">默认款式</th>
                        <th width="4%">价格类型</th>
                        <th width="4%">品牌</th>
                        <th width="4%">LOGO</th>
                        <th width="4%">产品材质</th>
                        <th width="4%">产品类型</th>
                        <th width="5%">自主订货产品</th>
                        <th width="5%">虚拟产品</th>
                        <th width="3%">重量<br/>单位：g</th>
                        <?php if($acc_type["cost_price"] == '1'): ?><th width="3%">成本价<br/>单位：￥</th><?php endif; ?>
                        <th width="3%">批发散货价<br/>单位：$</th>
                        <th width="3%">批发订货价<br/>单位：$</th>
                        <th width="3%">零售价<br/>单位：$</th>
                        <!--<th width="3%">IOFFER<br/>指导价<br/>单位：$</th>-->
                        <th width="5%"><?php echo ($custom["one"]); ?></th>
                        <th width="5%"><?php echo ($custom["two"]); ?></th>
                        <th width="5%"><?php echo ($custom["three"]); ?></th>
                        <th width="5%"><?php echo ($custom["four"]); ?></th>
                        <?php if($acc_type["supplier"] == '1'): ?><th width="4%">供应商</th><?php endif; ?>
                        <th width="4%">采购员</th>
                        <th width="6%">产品创建时间</th>
                        <th width="1%">操作</th>
                    </tr>
                    </thead>
                    <form id="searchForm" class="form-inline" method="get" action="">
                        <thead>
                        <tr>
                            <th>&nbsp;</th>
                            <th><input type="text" class="input-sm form-control" name="sku" id="sku" value="<?php echo ($sku); ?>">
                            </th>
                            <th></th>
                            <th></th>
                            <th></th>


                            <th>
                                <select class="form-control" width="50px" name="default_styles" id="default_styles">
                                    <option value="0"
                                    <?php if($default_styles == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <option value="1"
                                    <?php if($default_styles == '1'): ?>selected<?php endif; ?>
                                    >是</option>
                                    <option value="2"
                                    <?php if($default_styles == '2'): ?>selected<?php endif; ?>
                                    >否</option>
                                </select>
                            </th>
                            <!--<th>-->
                            <!--<select class="form-control" width="50px" name="independent_product" id="independent_product">-->
                            <!--<option value="0" <?php if($default_styles == '0'): ?>selected<?php endif; ?>>请选择</option>-->
                            <!--<option value="1" <?php if($default_styles == '1'): ?>selected<?php endif; ?>>是</option>-->
                            <!--<option value="2" <?php if($default_styles == '2'): ?>selected<?php endif; ?>>否</option>-->
                            <!--</select>-->
                            <!--</th>-->
                            <th>
                                <select class="form-control" name="price_type" id="price_type">
                                    <option value="0"
                                    <?php if($price_type == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <?php if(is_array($price_info)): foreach($price_info as $key=>$type): ?><option value="<?php echo ($type["price_type"]); ?>"
                                        <?php if($price_type == $type['price_type']): ?>selected<?php endif; ?>
                                        ><?php echo ($type["price_type"]); ?></option><?php endforeach; endif; ?>
                                </select>
                            </th>
                            <th>
                                <select class="form-control" width="50px" name="brand" id="brand">
                                    <option value="0">请选择</option>
                                    <?php if(is_array($brand_info)): foreach($brand_info as $key=>$brand2): ?><option value="<?php echo ($brand2["brand"]); ?>"
                                        <?php if($brand == $brand2['brand'] and $brand != ''): ?>selected<?php endif; ?>
                                        ><?php echo ($brand2["brand"]); ?></option><?php endforeach; endif; ?>
                                </select>
                            </th>
                            <th>
                                <select class="form-control" width="50px" name="logo" id="logo">
                                    <option value="0"
                                    <?php if($logo == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <option value="1"
                                    <?php if($logo == '1'): ?>selected<?php endif; ?>
                                    >是</option>
                                    <option value="2"
                                    <?php if($logo == '2'): ?>selected<?php endif; ?>
                                    >否</option>
                                </select>
                            </th>

                            <th>
                                <select class="form-control" name="product_material" id="product_material">
                                    <option value="0">请选择</option>
                                    <?php if(is_array($material_info)): foreach($material_info as $key=>$material): ?><option value="<?php echo ($material["product_material"]); ?>"
                                        <?php if($product_material == $material['product_material'] and $product_material != ''): ?>selected<?php endif; ?>
                                        ><?php echo ($material["product_material"]); ?></option><?php endforeach; endif; ?>
                                </select>
                            </th>
                            <th>
                                <select class="form-control" name="product_type" id="product_type">
                                    <option value="0"
                                    <?php if($product_type == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <?php if(is_array($type_info)): foreach($type_info as $key=>$type): ?><option value="<?php echo ($type["product_type"]); ?>"
                                        <?php if($product_type == $type['product_type']): ?>selected<?php endif; ?>
                                        ><?php echo ($type["product_type"]); ?></option><?php endforeach; endif; ?>
                                </select>
                            </th>
                            <th>
                                <select class="form-control" name="own_product" id="own_product">
                                    <option value="0"
                                    <?php if($own_product == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <?php if(is_array($own_product_all)): foreach($own_product_all as $key=>$product): if($product["own_product"] != ''): ?><option value="<?php echo ($product["own_product"]); ?>"
                                            <?php if($own_product == $product['own_product']): ?>selected<?php endif; ?>
                                            ><?php echo ($product["own_product"]); ?></option><?php endif; endforeach; endif; ?>
                                </select>
                            </th>
                            <th>
                                <select class="form-control" name="fictitious_product" id="fictitious_product">
                                    <option value="0"
                                    <?php if($fictitious_product == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <?php if(is_array($fictitious_product_all)): foreach($fictitious_product_all as $key=>$product): if($product["fictitious_product"] != ''): ?><option value="<?php echo ($product["fictitious_product"]); ?>"
                                            <?php if($fictitious_product == $product['fictitious_product']): ?>selected<?php endif; ?>
                                            ><?php echo ($product["fictitious_product"]); ?></option><?php endif; endforeach; endif; ?>
                                </select>
                            </th>
                            <th>
                                <input type="text" class="input-sm form-control"
                                       value="<?php if($weight_before != null): echo ($weight_before); endif; ?>"
                                       name="weight_before" id="weight_before">-
                                <input type="text" class="input-sm form-control"
                                       value="<?php if($weight_after != null): echo ($weight_after); endif; ?>"
                                       name="weight_after" id="weight_after">
                            </th>
                            <?php if($acc_type["cost_price"] == '1'): ?><th>
                                    <input type="text" class="input-sm form-control"
                                           value="<?php if($cost_price_before != null): echo ($cost_price_before); endif; ?>"
                                           name="cost_price_before" id="cost_price_before">-
                                    <input type="text" class="input-sm form-control"
                                           value="<?php if($cost_price_after != null): echo ($cost_price_after); endif; ?>"
                                           name="cost_price_after" id="cost_price_after">
                                </th><?php endif; ?>
                            <th>
                                <input type="text" class="input-sm form-control"
                                       value="<?php if($ali_lt_start != null): echo ($ali_lt_start); endif; ?>"
                                       name="ali_lt_start" id="ali_lt_start">-
                                <input type="text" class="input-sm form-control"
                                       value="<?php if($ali_lt_end != null): echo ($ali_lt_end); endif; ?>" name="ali_lt_end"
                                       id="ali_lt_end">

                            </th>
                            <th>
                                <input type="text" class="input-sm form-control"
                                       value="<?php if($ali_gt_start != null): echo ($ali_gt_start); endif; ?>"
                                       name="ali_gt_start" id="ali_gt_start">-
                                <input type="text" class="input-sm form-control"
                                       value="<?php if($ali_gt_end != null): echo ($ali_gt_end); endif; ?>" name="ali_gt_end"
                                       id="ali_gt_end">

                            </th>
                            <th>
                                <input type="text" class="input-sm form-control"
                                       value="<?php if($aliexpress_start != null): echo ($aliexpress_start); endif; ?>"
                                       name="aliexpress_start" id="aliexpress_start">-
                                <input type="text" class="input-sm form-control"
                                       value="<?php if($aliexpress_end != null): echo ($aliexpress_end); endif; ?>"
                                       name="aliexpress_end" id="aliexpress_end">
                            </th>
                            <!--<th>-->
                            <!--<input type="text"  class="input-sm form-control" value="<?php if($ioffer_start != null): echo ($ioffer_start); endif; ?>"  name="ioffer_start" id="ioffer_start">- -->
                            <!--<input type="text"  class="input-sm form-control" value="<?php if($ioffer_end != null): echo ($ioffer_end); endif; ?>"  name="ioffer_end" id="ioffer_end">-->
                            <!--</th>-->


                            <th>
                                <select class="form-control" name="custom_one" id="custom_one">
                                    <option value="0"
                                    <?php if($custom_one == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <?php if(is_array($custom_1)): foreach($custom_1 as $key=>$custom): if($custom["custom_one"] != ''): ?><option value="<?php echo ($custom["custom_one"]); ?>"
                                            <?php if($custom_one == $custom['custom_one']): ?>selected<?php endif; ?>
                                            ><?php echo ($custom["custom_one"]); ?></option><?php endif; endforeach; endif; ?>
                                </select>
                            </th>
                            <th>
                                <select class="form-control" name="custom_two" id="custom_two">
                                    <option value="0"
                                    <?php if($custom_two == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <?php if(is_array($custom_2)): foreach($custom_2 as $key=>$custom): if($custom["custom_two"] != ''): ?><option value="<?php echo ($custom["custom_two"]); ?>"
                                            <?php if($custom_two == $custom['custom_two']): ?>selected<?php endif; ?>
                                            ><?php echo ($custom["custom_two"]); ?></option><?php endif; endforeach; endif; ?>
                                </select>
                            </th>
                            <th>
                                <select class="form-control" name="custom_three" id="custom_three">
                                    <option value="0"
                                    <?php if($custom_three == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <?php if(is_array($custom_3)): foreach($custom_3 as $key=>$custom): if($custom["custom_three"] != ''): ?><option value="<?php echo ($custom["custom_three"]); ?>"
                                            <?php if($custom_three == $custom['custom_three']): ?>selected<?php endif; ?>
                                            ><?php echo ($custom["custom_three"]); ?></option><?php endif; endforeach; endif; ?>
                                </select>
                            </th>
                            <th>
                                <select class="form-control" name="custom_four" id="custom_four">
                                    <option value="0"
                                    <?php if($custom_four == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <?php if(is_array($custom_4)): foreach($custom_4 as $key=>$custom): if($custom["custom_four"] != ''): ?><option value="<?php echo ($custom["custom_four"]); ?>"
                                            <?php if($custom_four == $custom['custom_four']): ?>selected<?php endif; ?>
                                            ><?php echo ($custom["custom_four"]); ?></option><?php endif; endforeach; endif; ?>
                                </select>
                            </th>
                            <?php if($acc_type["supplier"] == '1'): ?><th>
                                    <select class="form-control" name="supplier" id="supplier">
                                        <option value="0"
                                        <?php if($supplier == '0'): ?>selected<?php endif; ?>
                                        >请选择</option>
                                        <?php if(is_array($supplier_info)): foreach($supplier_info as $key=>$supplier1): ?><option value="<?php echo ($supplier1["supplier"]); ?>"
                                            <?php if($supplier == $supplier1['supplier']): ?>selected<?php endif; ?>
                                            ><?php echo ($supplier1["supplier"]); ?></option><?php endforeach; endif; ?>
                                    </select>
                                </th><?php endif; ?>
                            <th>
                                <select class="form-control" name="buyer" id="buyer">
                                    <option value="0"
                                    <?php if($buyer == '0'): ?>selected<?php endif; ?>
                                    >请选择</option>
                                    <?php if(is_array($buyer_info)): foreach($buyer_info as $key=>$buyer1): ?><option value="<?php echo ($buyer1["buyer"]); ?>"
                                        <?php if($buyer == $buyer1['buyer']): ?>selected<?php endif; ?>
                                        ><?php echo ($buyer1["buyer"]); ?></option><?php endforeach; endif; ?>
                                </select>
                            </th>
                            <th>

                                <input placeholder="开始时间" name="starttime" id="starttime"
                                       onClick="laydate({istime: true, format: 'YYYY-MM-DD'})"
                                       value="<?php if($starttime != null): echo ($starttime); endif; ?>"
                                       class="input-sm form-control">

                                <input placeholder="结束时间" name="endtime" id="endtime"
                                       onClick="laydate({istime: true, format: 'YYYY-MM-DD'})"
                                       value="<?php if($endtime != null): echo ($endtime); endif; ?>"
                                       class="input-sm form-control">


                                <!--<input placeholder="开始时间" name="starttime" id="starttime" onClick="laydate({istime: true, format: 'YYYY-MM-DD'})" value="<?php echo empty($data['starttime'])?'':$data['starttime']; ?>"  class="input-sm form-control">

                       <input placeholder="结束时间" name="endtime" id="endtime" onClick="laydate({istime: true, format: 'YYYY-MM-DD'})" value="<?php echo empty($data['endtime'])?'':$data['endtime']; ?>"  class="input-sm form-control">-->
                            </th>
                            <th>
                                <button type="submit" class="btn btn-sm btn-primary"> 搜索</button>
                                <br/></th>
                        </tr>
                        </thead>
                    </form>
                    <form method="post" action="">
                        <tbody>
                        <?php if(is_array($recycle_list)): foreach($recycle_list as $recycle_list=>$recycle): ?><tr>
                                <td><input class="i-checks" type="checkbox" name="ids" value="<?php echo ($recycle["id"]); ?>"/></td>
                                <td><?php echo ($recycle["sku"]); ?></td>
                                <td>
                                    <img src="/Public/images/<?php echo ($recycle["sku"]); ?>/<?php echo ($recycle["main_pic"]); ?>" alt="图片已丢失或不存在"
                                         height="120px" width="120px" class="main_pic" style="z-index:-1;"/ >
                                </td>
                                <td><img src="/Public/images/<?php echo ($recycle["sku"]); ?>/<?php echo ($recycle["size_pic"]); ?>" alt="图片已丢失或不存在"
                                         height="120px" width="120px" class="size_pic" style="z-index:-1;"/ >
                                </td>
                                <td>
                                    <a class="btn btn-sm btn-primary" title="进入图库"
                                       href="<?php echo U('get_filetree',array('sku'=>$recycle['sku']));?>"
                                       target="_blank">进入图库</a>
                                </td>
                                <td>
                                    <?php if( $recycle["default_styles"] == 1): ?>是
                                        <?php else: ?>
                                        否<?php endif; ?>
                                </td>
                                <!--<td>-->
                                <!--<?php if( $recycle["independent_product"] == 1): ?>是 <?php else: ?> 否<?php endif; ?>-->
                                <!--</td>-->
                                <td>
                                    <?php echo ($recycle["price_type"]); ?>
                                </td>
                                <td>
                                    <?php echo ($recycle["brand"]); ?>
                                </td>
                                <td>
                                    <?php if( $recycle["logo"] == 1): ?>是
                                        <?php else: ?>
                                        否<?php endif; ?>
                                </td>
                                <th>
                                    <?php echo ($recycle["product_material"]); ?>
                                </th>
                                <td>
                                    <?php echo ($recycle["product_type"]); ?>
                                </td>
                                <td>
                                    <?php echo ($recycle["own_product"]); ?>
                                </td>
                                <td>
                                    <?php echo ($recycle["fictitious_product"]); ?>
                                </td>
                                <td>
                                    <?php echo ($recycle["weight"]); ?>
                                </td>
                                <?php if($acc_type["cost_price"] == '1'): ?><td>
                                        <?php echo ($recycle["cost_price"]); ?>
                                    </td><?php endif; ?>
                                <td>
                                    <?php echo ($recycle["ali_lt"]); ?>
                                </td>
                                <td>
                                    <?php echo ($recycle["ali_gt"]); ?>
                                </td>
                                <td>
                                    <?php echo ($recycle["aliexpress"]); ?>
                                </td>
                                <!--<td>-->
                                <!--<?php echo ($recycle["ioffer"]); ?>-->
                                <!--</td>-->
                                <td>
                                    <?php echo ($recycle["custom_one"]); ?>
                                </td>
                                <td>
                                    <?php echo ($recycle["custom_two"]); ?>
                                </td>
                                <td>
                                    <?php echo ($recycle["custom_three"]); ?>
                                </td>
                                <td>
                                    <?php echo ($recycle["custom_four"]); ?>
                                </td>
                                <?php if($acc_type["supplier"] == '1'): ?><td>
                                        <?php echo ($recycle["supplier"]); ?>
                                    </td><?php endif; ?>
                                <td>
                                    <?php echo ($recycle["buyer"]); ?>
                                </td>
                                <td>
                                    <?php echo date("Y-m-d",strtotime($recycle['addtime']));?>
                                </td>
                                <td>
                                    <!--<a class="btn btn-sm btn-primary" title="编辑" href="<?php echo U('edit_product',array('id'=>$product_info['id']));?>">编辑</a><br/>
                                 <a class="btn btn-sm btn-primary" title="回收" href="<?php echo U('recycle_pro',array('id'=>$product_info['id']));?>">回收</a><br/>-->

                                    <a class="btn btn-sm btn-primary" title="复原"
                                       href="<?php echo U('recover',array('id'=>$recycle['id']));?>">复原</a><br/>
                                    <a class="btn btn-sm btn-primary" title="编辑"
                                       href="<?php echo U('edit_product',array('id'=>$recycle['id']));?>">编辑</a><br/>
                                    <a class="btn btn-sm btn-primary" title="删除"
                                       href="<?php echo U('dele',array('id'=>$recycle['id']));?>">删除</a>
                                </td>

                            </tr><?php endforeach; endif; ?>
                    </form>
                    </tbody>
                </table>

                <form id="product_managementSSS" method="post" action="<?php echo U('impUser');?>" enctype="multipart/form-data">
                <table width="100%" border="0"><!--style="position:fixed;"-->
                    <tr>
                        <td>
                            <a  class="btn btn-sm btn-primary" id="daoru" value=""> 批量导入</a>
                            <input type="file"  id="button" name="excel" style="display:none"/>
                            <a class="btn btn-sm btn-primary" title="导出" id="daochu" >批量导出</a>&nbsp
                            <a class="btn btn-sm btn-primary" title="批量复原" id="recheck">批量复原</a>&nbsp
                            <a class="btn btn-sm btn-primary" title="批量修改" id="edit_productAll">批量修改</a>&nbsp
                            <a class="btn btn-sm btn-primary" title="批量修改" id="deleAll">批量删除</a>&nbsp
                    </tr>
                    <input type="hidden" name="status" value="2">
                </table>
                </form>
                <br/>


                <!-- 分页代码 -->
                <div class="fixed-table-pagination" style="display: block;margin-top:30px;">
                    <div class="pull-left pagination-detail">
                        <span class="pagination-info">显示第 1 到第 <?php echo ($count["pageSize"]); ?> 条记录，总共 <?php echo ($count["count"]); ?> 条记录</span>
                        <span class="page-list">每页显示
			<span class="btn-group dropup">
				<button type="button" class="btn btn-default  btn-outline dropdown-toggle" data-toggle="dropdown"
                        aria-expanded="false">
					<span class="page-size"><?php echo ($count["pageSize"]); ?></span> <span class="caret"></span></button>
					<ul class="dropdown-menu" role="menu">
					<li class="<?php if( $count["pageSize"] == 10): ?>active<?php endif; ?>"><a
                            href="javascript:page(1,10,'');">10</a></li>
                        <li class="<?php if( $count["pageSize"] == 25): ?>active<?php endif; ?>"><a
                            href="javascript:page(1,25,'');">25</a></li>
                        <li class="<?php if( $count["pageSize"] == 50): ?>active<?php endif; ?>"><a
                            href="javascript:page(1,50,'');">50</a></li>
                        <li class="<?php if( $count["pageSize"] == 100): ?>active<?php endif; ?>"><a
                            href="javascript:page(1,100,'');">100</a></li>
					</ul>
					</span> 条记录</span>
                    </div>
                    <div class=" pagination-roll"><!--pull-right-->
                        <ul class="pagination pagination-outline">
                            <li class="paginate_button <?php if( $count["pageNo"] == 1 ): ?>previous disabled<?php endif; ?>"><a href="javascript:" onClick="page(1,<?php echo ($count["pageSize"]); ?>,'');"><i
                                class="fa fa-angle-double-left"></i></a></li>
                            <li class="paginate_button <?php if( $count["pageNo"] == 1 ): ?>previous disabled<?php endif; ?>"><a href="javascript:"
                                                           onClick="page(<?php echo ($count["pageNo"]); ?>-1,<?php echo ($count["pageSize"]); ?>,'');"><i
                                class="fa fa-angle-left"></i></a></li>
                            <?php if( $count["countpage"] > 10 ): if( $count["pageNo"] < 5 ): ?><li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(1,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==1)?'current':'' ?>">1</a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(2,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==2)?'current':'' ?>">2</a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(3,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==3)?'current':'' ?>">3</a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(4,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==4)?'current':'' ?>">4</a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(5,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==5)?'current':'' ?>">5</a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(6,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==6)?'current':'' ?>">6</a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(7,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==7)?'current':'' ?>">7</a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(8,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==8)?'current':'' ?>">8</a>
                                    </li>
                                    <li class="paginate_button disabled"><a href="javascript:">...</a></li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo ($count["countpage"]); ?>,<?php echo ($count["pageSize"]); ?>,'');"><?php echo ($count["countpage"]); ?></a>
                                    </li>
                                    <?php elseif($count["pageNo"] < $count["num"] and $count["pageNo"] >= 5): ?>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(1,<?php echo ($count["pageSize"]); ?>,'');">1</a></li>
                                    <li class="paginate_button disabled"><a href="javascript:">...</a></li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['pageNo']-3; ?>,<?php echo ($count["pageSize"]); ?>,'');"><?php echo $count['pageNo']-3; ?></a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['pageNo']-2; ?>,<?php echo ($count["pageSize"]); ?>,'');"><?php echo $count['pageNo']-2; ?></a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['pageNo']-1; ?>,<?php echo ($count["pageSize"]); ?>,'');"><?php echo $count['pageNo']-1; ?></a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo ($count["pageNo"]); ?>,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id='current'><?php echo $count['pageNo']; ?></a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['pageNo']+1; ?>,<?php echo ($count["pageSize"]); ?>,'');"><?php echo $count['pageNo']+1; ?></a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['pageNo']+2; ?>,<?php echo ($count["pageSize"]); ?>,'');"><?php echo $count['pageNo']+2; ?></a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['pageNo']+3; ?>,<?php echo ($count["pageSize"]); ?>,'');"><?php echo $count['pageNo']+3; ?></a>
                                    </li>
                                    <li class="paginate_button disabled"><a href="javascript:">...</a></li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo ($count["countpage"]); ?>,<?php echo ($count["pageSize"]); ?>,'');"><?php echo ($count["countpage"]); ?></a>
                                    </li>
                                    <?php else: ?>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(1,<?php echo ($count["pageSize"]); ?>,'');">1</a></li>
                                    <li class="paginate_button disabled"><a href="javascript:">...</a></li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['countpage']-4; ?>,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==($count['countpage']-4))?'current':'' ?>"><?php echo $count['countpage']-4; ?></a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['countpage']-3; ?>,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==($count['countpage']-3))?'current':'' ?>"><?php echo $count['countpage']-3; ?></a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['countpage']-2; ?>,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==($count['countpage']-2))?'current':'' ?>"><?php echo $count['countpage']-2; ?></a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['countpage']-1; ?>,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==($count['countpage']-1))?'current':'' ?>"><?php echo $count['countpage']-1; ?></a>
                                    </li>
                                    <li class="paginate_button "><a href="javascript:"
                                                                    onClick="page(<?php echo $count['countpage']; ?>,<?php echo ($count["pageSize"]); ?>,'');"
                                                                    id="<?php echo ($count['pageNo']==$count['countpage'])?'current':'' ?>"><?php echo $count['countpage']; ?></a>
                                    </li><?php endif; ?>
                                <?php else: ?>
                                <?php $__FOR_START_780740475__=0;$__FOR_END_780740475__=$count["countpage"];for($i=$__FOR_START_780740475__;$i < $__FOR_END_780740475__;$i+=1){ ?><li class="paginate_button <?php if( $count["pageNo"] == $i+1 ): ?>previous disabled<?php endif; ?>
                            "><a href="javascript:" onClick="page(<?php echo ($i+1); ?>,<?php echo ($count["pageSize"]); ?>,'');"
                                 id="<?php echo ($count['pageNo']==($i+1))?'current':'' ?>"><?php echo ($i+1); ?></a></li><?php } endif; ?>
                            <li class="paginate_button next <?php if( $count["pageNo"] >= $count["countpage"] ): ?>previous disabled<?php endif; ?>"><a href="javascript:"
                                                           onClick="page(<?php echo ($count["pageNo"]); ?>+1,<?php echo ($count["pageSize"]); ?>,'');"><i
                                class="fa fa-angle-right"></i></a></li>
                            <li class="paginate_button next <?php if( $count["pageNo"] >= $count["countpage"] ): ?>previous disabled<?php endif; ?>"><a href="javascript:"
                                                           onClick="page(<?php echo ($count["countpage"]); ?>,<?php echo ($count["pageSize"]); ?>,'');"><i
                                class="fa fa-angle-double-right"></i></a></li>
                        </ul>
                    </div>
                </div>
                <br/>
                <br/>
            </div>
        </div>
    </div>

</div>
</div>
</div>

</div>

</div>
<script src="/Public/js/jquery.min63b9.js?v=2.1.4"></script>
<script src="/Public/js/bootstrap.min14ed.js?v=3.3.6"></script>
<script src="/Public/js/plugins/peity/jquery.peity.min.js"></script>
<script src="/Public/js/content.mine209.js?v=1.0.0"></script>
<script src="/Public/js/plugins/iCheck/icheck.min.js"></script>
<script src="/Public/js/demo/peity-demo.min.js"></script>
<script src="/Public/js/plugins/layer/laydate/laydate.js"></script>
<script>
    $(document).ready(function () {
        $(".i-checks").iCheck({checkboxClass: "icheckbox_square-green", radioClass: "iradio_square-green",})
    });
    $(document).ready(function () {

        $('.check-all').iCheck({

            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });


    $(document).ready(function () {
        $('.check-all').on('ifChecked', function (event) { //ifCreated 事件应该在插件初始化之前绑定
            $('.i-checks').iCheck('check');
        });

        $('.check-all').on('ifUnchecked', function (event) { //ifCreated 事件应该在插件初始化之前绑定
            $('.i-checks').iCheck('uncheck');
        });


        $('#check').click(function () {
            tids = '';
            $('.i-checks').each(function () {
                if ($(this).prop('checked')) {
                    tids += $(this).val() + ',';
                }
            })
            $(this).attr('href', 'shenhe?tids=' + tids);

        })

        $('#recheck').click(function () {
            tids = '';
            $('.i-checks').each(function () {
                if ($(this).prop('checked')) {
                    tids += $(this).val() + ',';
                }
            })
            if (tids == '') {
                layer.alert('请选择产品');
                return false
            }
            $(this).attr('href', 'recoverAll?tids=' + tids);

        })

        $('#edit_productAll').click(function () {
            tids = '';
            $('.i-checks').each(function () {
                if ($(this).prop('checked')) {
                    tids += $(this).val() + ',';
                }
            })
            if (tids == '') {
                layer.alert('请选择订单');
                return false
            }
            $(this).attr('href', 'edit_productAll?tids=' + tids);

        })

        $('#deleAll').click(function () {
            tids = '';
            $('.i-checks').each(function () {
                if ($(this).prop('checked')) {
                    tids += $(this).val() + ',';
                }
            })
            if (tids == '') {
                layer.alert('请选择订单');
                return false
            }
            $(this).attr('href', 'deleAll?tids=' + tids);

        });

        // 批量导出
        $('#daochu').click(function () {
            tids = '';
            $('.i-checks').each(function () {
                if ($(this).prop('checked')) {
                    tids += $(this).val() + ',';
                }
            })
            if (tids == '') {
                layer.alert('请选择产品');
                return false
            }
            $(this).attr('href', 'daochu_excel_new?tids=' + tids);

        });

        //导入
        $("#daoru").click(function(){
            $("#button").trigger('click');
            $("#submit").addClass('submit');
            $("#button").change(function(){
                $("#product_managementSSS").submit();
            });
            //
            //$(".submit").trigger('click');

        })

        $(".main_pic").click(function () {
            $("#main_pic_show").css({
                width: "40%",
                height: "auto",
                display: "block",
                padding: "10px",
                top: "46px",
                left: "445px"
            });
            //z-index: 92; padding: 10px; top: 46px; left: 445px; width: 500px; height: 333px; display: block;
            var path = $(this).attr("src");
            $("#main_pic_show").attr('src', path);
        })

        $("#main_pic_show").click(function () {
            $("#main_pic_show").css({width: "40%", height: "auto", display: "none"});
        })

        $(".size_pic").click(function () {
            $("#size_pic_show").css({
                width: "40%",
                height: "auto",
                display: "block",
                padding: "10px",
                top: "46px",
                left: "445px"
            });
            var path = $(this).attr("src");
            $("#size_pic_show").attr('src', path);
        })

        $("#size_pic_show").click(function () {
            $("#size_pic_show").css({width: "40%", height: "auto", display: "none"});
        })


    });

</script>
<div style="display:none">
    <script language="javascript" type="text/javascript" src="http://js.users.51.la/17825721.js"></script>
    <noscript><a href="http://www.51.la/?17825721" target="_blank"><img
            alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/17825721.asp"
            style="border:none"/></a></noscript>
</div>
</body>
<!--Made By kailuosoft.com, TEL 171 9992 9517 -->
<script type="text/javascript" src="http://g.tbcdn.cn/sj/securesdk/0.0.3/securesdk_v2.js" id="J_secure_sdk_v2"
        data-appkey="23416550"></script>
</html>